package com.chat.openfeign.client.fallback;

import com.chat.common.dto.GetGroupDTO;
import com.chat.common.entity.Group;
import com.chat.common.form.ListForm;
import com.chat.common.vo.GetGroupVO;
import com.chat.common.vo.GroupVO;
import com.chat.common.vo.R;
import com.chat.openfeign.client.BusinessDataService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wei kunJie
 * @date 2024/4/8 13:55:28
 */
@Service
public class BusinessDataServiceFallback implements BusinessDataService {
    @Override
    public R test() {
        return R.failed("远程调用失败");
    }

    @Override
    public R<List<GroupVO>> getUserGroups(Long userId) {
        return R.failed("远程调用失败");
    }

    @Override
    public R<ListForm<GetGroupVO>> getAllGroups(GetGroupDTO getGroupDTO) {
        return R.failed("远程调用失败");
    }

    @Override
    public R DisableGroup(String ID) {
        return R.failed("远程调用失败");
    }

    @Override
    public R EnableGroup(String ID) {
        return R.failed("远程调用失败");
    }

    @Override
    public R offline(String ID) {
        return R.failed("远程调用失败");
    }

    @Override
    public R<Group> getGroupByAccount(String groupAccount) {
        return R.failed("远程调用失败");
    }
}
